// 菜单相关接口
import { get, post, put, exportDefault } from '@/utils/request'

// 菜单的公共URL前缀
let BASE_URL = '/common/menu'

const menu = {
  queryMenuPage: (data) => post(BASE_URL + '/searchDefault', data),
  queryAppData: (data) => get(BASE_URL + '/appData', data),
  exportMenu: (data) => exportDefault(BASE_URL + '/exportDefault', data),
  getMenuById: (data) => get(BASE_URL + '/getById', data),
  createMenu: (data) => post(BASE_URL + '/create', data),
  updateMenu: (data) => put(BASE_URL + '/update', data)
}
export default menu
